package br.com.estacionamento.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import javax.swing.JOptionPane;

public class GaragemConexao {
	private static final String USUARIO = "rodolfo";
	private static final String SENHA = "qwerty";
	private static final String STR_CONEXAO = "jdbc:oracle:thin:@localhost:1521:xe";
	
	public static Connection getConexao() throws SQLException{
	   try {
		   return DriverManager.getConnection(STR_CONEXAO,USUARIO,SENHA);
	   } catch (SQLException e) {
		   throw new SQLException(e.getMessage());
	   }	
		
	}
	
}
